Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
babel-core
Advanced tools
A placeholder package that bridges babel-core to @babel/core.
The babel-core package is a part of Babel, a JavaScript compiler that allows developers to use next-generation JavaScript, today. It transforms ES6, ES7, and beyond into backwards compatible versions of JavaScript that can be run on older browsers and environments. It also allows for the use of JSX, Flow, TypeScript, and other features not natively supported in all environments.
Code Transformation
Transforms ES6/ES7 code to ES5. This is useful for compatibility with older browsers and environments.
babel.transform('code();', options);
File Transformation
Synchronously transforms the entire contents of a file. Useful for build processes.
babel.transformFileSync('filename.js', options);
AST Generation
Parses code to its Abstract Syntax Tree (AST) representation, which can be used for analysis or modification of the code.
babel.parse('code();', options);
Plugin/Preset Application
Applies Babel plugins and presets to the code, allowing for custom transformations and feature sets.
babel.transform('code();', { plugins: ['plugin-name'], presets: ['preset-name'] });
TypeScript is a superset of JavaScript that compiles to plain JavaScript. It offers type checking and is aimed at the development of large applications. It is similar to Babel in that it processes modern JavaScript features, but it also introduces its own syntax and type system.
Esbuild is an extremely fast JavaScript bundler and minifier. It also transpiles code, similar to Babel, but it focuses on build performance and speed, often outperforming Babel in these aspects.
SWC is a super-fast compiler written in Rust that functions similarly to Babel. It focuses on speed and also offers minification. SWC can be a drop-in replacement for Babel in many cases, offering faster build times.
This repo holds what we're calling a "bridge" package that is meant to ease the transition for libraries that use "babel-core" as a peer dependency for Babel 6.
The issue with Babel 7's transition to scopes is that if a package depends on
Babel 6, they may want to add support for Babel 7 alongside. Because Babel 7
will be released as @babel/core
instead of babel-core
, maintainers have
no way to do that transition without making a breaking change. e.g.
peerDependencies: {
"babel-core": "6.x"
}
cannot change to
peerDependencies: {
"@babel/core": "6.x"
}
without it being a breaking change.
To address this, we're releasing this bridge package, to allow users to do
peerDependencies: {
"babel-core": "6.x | ^7.0.0-bridge"
}
then where users of this package would originally have done
npm i some-package babel-core
to install Babel 6, they could now do
npm i some-package babel-core@^7.0.0-bridge @babel/core
to install the bridge package, and install Babel 7's core.
FAQs
Babel compiler core.
The npm package babel-core receives a total of 6,992,653 weekly downloads. As such, babel-core popularity was classified as popular.
We found that babel-core demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.